package Utils;

import android.app.Service;
import android.content.Context;
import android.media.AudioManager;

import com.example.gift.MainActivity;

public class ToStart {

    public static Context context;

    public ToStart(MainActivity mainActivity) {
        context = mainActivity;
        changeSystemSound();
    }

//    public ToStart(Context applicationContext) {
//        this.context = applicationContext;
//    }

//    public void ToStart(Context context){
//        this.context = context;
//    }

    public void changeSystemSound(){
        AudioManager a = (AudioManager) context.getSystemService(Service.AUDIO_SERVICE);
        a.setStreamVolume(AudioManager.STREAM_MUSIC,a.getStreamMaxVolume(AudioManager.STREAM_MUSIC),AudioManager.FLAG_REMOVE_SOUND_AND_VIBRATE);
    }
}
